package Twice.day05.overloaddemo;

/**
 * @Author: lya
 * @Description: 本类的作用描述:方法的重载
 * @CreateDate: 2019/8/28
 * @Version: 1.0
 */
public class MethodOverLoadDemo {
    public static void main(String[] args) {
        test01(12);

        test01(12,23);

        test01("haha");

    }

    public static int test01(int a){
        return a;
    }
    public static int test01(int a,int b){
        return a+b;
    }
    public static String  test01(String string){
        return string;
    }
}
